package com.szpx.common.entity;

import java.util.List;

/**
 * @author RanRan
 * @version 1.0.0
 * @title PageResult
 * @create 2024/3/4 22:25
 * @description：分页结果类
 */

public class PageResult<T> {
	
	private Long total;//总记录数
	private List<T> rows;//记录
	
	public PageResult(Long total, List<T> rows) {
		this.total = total;
		this.rows = rows;
	}
	
	public PageResult() {
	}
	
	public Long getTotal() {
		return total;
	}
	
	public void setTotal(Long total) {
		this.total = total;
	}
	
	public List<T> getRows() {
		return rows;
	}
	
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
}
